package com.macro.mall.portal.dto;

import java.util.List;

public class LogisticsResponse {
    private String logisticCode;
    private List<Trace> traces;
    private String state;
    private String eBusinessID;
    private String reason; // 可能为空
    private boolean success;
    private String stateEx; // 可能为空
    private String location; // 可能为空

    // Getters and Setters

    public String getLogisticCode() {
        return logisticCode;
    }

    public void setLogisticCode(String logisticCode) {
        this.logisticCode = logisticCode;
    }

    public List<Trace> getTraces() {
        return traces;
    }

    public void setTraces(List<Trace> traces) {
        this.traces = traces;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getEBusinessID() {
        return eBusinessID;
    }

    public void setEBusinessID(String eBusinessID) {
        this.eBusinessID = eBusinessID;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getStateEx() {
        return stateEx;
    }

    public void setStateEx(String stateEx) {
        this.stateEx = stateEx;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    // Trace 类
    public static class Trace {
        private String action;
        private String acceptStation;
        private String acceptTime;
        private String location;

        // Getters and Setters

        public String getAction() {
            return action;
        }

        public void setAction(String action) {
            this.action = action;
        }

        public String getAcceptStation() {
            return acceptStation;
        }

        public void setAcceptStation(String acceptStation) {
            this.acceptStation = acceptStation;
        }

        public String getAcceptTime() {
            return acceptTime;
        }

        public void setAcceptTime(String acceptTime) {
            this.acceptTime = acceptTime;
        }

        public String getLocation() {
            return location;
        }

        public void setLocation(String location) {
            this.location = location;
        }
    }
}
